<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<%-- <%@taglib uri="spring.tld" prefix="spring"%> --%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String servletPath = (String) request.getAttribute("javax.servlet.forward.servlet_path");
	String[] list = servletPath.split("\\/");
	request.setAttribute("role", list[1]);
	request.setAttribute("topMenuId", list[2]);
	request.setAttribute("leftMenuId", list[3]);
%>

<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>人工阅卷</title>
<meta name="keywords" content="">
<link rel="shortcut icon"
	href="<%=basePath%>resources/images/favicon.ico" />
<link href="resources/bootstrap/css/bootstrap-huan.css" rel="stylesheet">
<link href="resources/font-awesome/css/font-awesome.min.css"
	rel="stylesheet">
<link href="resources/css/style.css" rel="stylesheet">

<link href="resources/css/exam.css" rel="stylesheet">
<link href="resources/chart/morris.css" rel="stylesheet">
<style>
#add-more-qt-to-paper {
	cursor: pointer;
	color: #1ba1e2;
}

#add-more-qt-to-paper:hover {
	color: #ff7f74;
}

#add-more-qt-to-paper i {
	color: #47a447;
	cursor: pointer;
	margin-right: 5px;
}

#qt-selector-iframe {
	border: none;
	height: 600px;
}

.tmp-ques-remove {
	margin-left: 10px;
}

.question-point {
	padding: 0 8px;
	margin: 0 2px;
}
</style>
</head>
<body>
	<header>
		<span style="display: none;" id="rule-role-val"><%=list[1]%></span>
		<%@include file="../views/common/header.jsp"%>
	</header>
	<!-- Navigation bar starts -->

	<div class="navbar bs-docs-nav" role="banner">
		<div class="container">
			<nav class="collapse navbar-collapse bs-navbar-collapse"
				role="navigation">
				<c:import
					url="/common-page/top-menu?topMenuId=${topMenuId}&leftMenuId=${leftMenuId}"
					charEncoding="UTF-8" />
			</nav>
		</div>
	</div>

	<!-- Navigation bar ends -->

	<!-- Slider starts -->

	<div class="content"
		style="margin-bottom: 50px !important; margin-top: 0;">
		<!-- Slider (Flex Slider) -->

		<div class="container"
			style="min-height: 500px; margin-bottom: 50px !important;">

			<div class="row">
				<div class="col-xs-2" id="left-menu">
					<c:import
						url="/common-page/left-menu?topMenuId=${topMenuId}&leftMenuId=${leftMenuId}"
						charEncoding="UTF-8" />

				</div>
				<div class="col-xs-10" id="right-content">
					<div class="page-header">
						<h1>
							<i class="fa fa-file-text"></i> 人工阅卷
						</h1>
					</div>
					<div class="page-content">
						<div class="def-bk" id="bk-exampaper">

							<div class="expand-bk-content" id="bk-conent-exampaper">
								<div id="exampaper-header">
									<div id="exampaper-title">
										<i class="fa fa-send"></i> <span id="exampaper-title-name">${exampapername}
										</span> <span style="display: none;" id="exampaper-id">${exampaperid}</span>

									</div>
									<div id="exampaper-desc-container">
										<div id="exampaper-desc" class="exampaper-filter"></div>
										<div style="margin-top: 5px;">
											<span>试卷总分：</span><span id="exampaper-total-point"
												style="margin-right: 20px; font-weight: bolder;"></span> <span>考生得分：</span><span
												id="exampaper-raw-point"
												style="color: #5cb85c; margin-right: 20px; font-weight: bolder;"></span>
											<!-- <span id="add-more-qt-to-paper"><i class="small-icon fa fa-plus-square" title="添加选项"></i><span>增加更多题目</span></span> -->
										</div>
									</div>


								</div>
								<input type="hidden" id="hist-id" value="${examHistoryId }">
								<input type="hidden" id="paper-id" value="${examPaperId }">
								<input type="hidden" id="exam-id" value="${examId }">
								<ul id="exampaper-body" style="padding: 0px;">${htmlStr }
								</ul>

								<div id="exampaper-footer" style="height: 214px;">
									<div id="question-navi"
										style="margin-bottom: 64px !important; margin-top: 0;height:104px;">
										<div id="question-navi-controller">
											<i class="fa fa-arrow-circle-down"></i> <span>答题卡</span>
										</div>
										<div id="question-navi-content"></div>
									</div>
									<div style="padding-left: 30px;height:80px;">
										<button class="btn btn-info">
											<i class="fa fa-save"></i>完成阅卷
										</button>
									</div>

								</div>
							</div>

						</div>
					</div>
				</div>
			</div>
		</div>



	</div>

	<c:import url="../views/common/footer.jsp" />

	<!-- Slider Ends -->

	<!-- Javascript files -->
	<!-- jQuery -->
	<script type="text/javascript"
		src="resources/js/jquery/jquery-1.9.0.min.js"></script>
	<!-- Bootstrap JS -->
	<script type="text/javascript"
		src="resources/bootstrap/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="resources/js/all.js"></script>
	<script type="text/javascript" src="resources/js/exampaper-mark.js"></script>

</body>
</html>